@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .table {
        width: 100%;
        height: 442px;
        @include bg("assets/images/personnel_table_bg.png");
    }
    .personnel_list {
        max-width: 1200px;
        margin: 0 auto;

        color: #323333;
        .search {
            background: #f8f8f8;
            box-sizing: border-box;
            padding: 44px 33px 38px 33px;
            p {
                font-size: 20px;
                font-family: Microsoft YaHei;
                font-weight: 400;
            }
            .alphabet {
                max-width: 1134px;
                min-height: 140px;
                margin-top: 22px;
                margin-bottom: 39px;
                border: 1px solid #dddddd;
                padding-bottom: 1px;
                display: flex;
                flex-wrap: wrap;
                justify-content: flex-start;
                .alphabet_item {
                    cursor: pointer;
                    width: 70px;
                    @include line-hight(70px);
                    text-align: center;
                    color: #323333;
                    font-size: 20px;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    float: left;
                    border-radius: 4px;
                    transition: 1s;
                }
                .active {
                    background: #aa171f;
                    color: #fff;
                }
            }
            .input_box {
                font-size: 18px;
                margin-top: 23px;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                .input_item {
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    align-items: center;
                    // float: left;
                    padding-right: 1px;
                    span {
                        @include line-hight(54px);
                        padding-right: 10px;
                    }
                    .input {
                        // width: 2px;

                        flex: 1;
                        height: 40px !important ;
                        line-height: 40px !important;
                        font-size: 0;
                        background: #f8f8f8;
                        box-sizing: border-box;

                        border-radius: 4px;
                        input {
                            box-sizing: border-box;
                            padding-left: 10px;
                            width: 100%;
                            height: 100%;
                            border: 1px solid #dddddd;
                            outline: none;
                            border-radius: 4px;
                        }
                        input:focus {
                            outline: none;
                            border-color: #aa171f !important;
                        }
                    }
                    .el-select {
                        // width: 2px;
                        flex: 1;
                        height: 54px !important ;
                        line-height: 54px !important;
                    }
                }
            }
            .submit {
                cursor: pointer;
                width: 120px;
                font-size: 20px;
                color: #fcfcfc;
                @include line-hight(54px);
                text-align: center;
                background: #aa171f;
                margin-top: 25px;
                font-family: Microsoft YaHei;
                font-weight: bold;
                border-radius: 4px;
            }
        }
        .personnel_info {
            margin-top: 88px;
            .personnel_item {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                margin-bottom: 72px;
                min-height: 335px;
                background: #f8f8f8;
                box-sizing: border-box;
                padding: 25px 33px;

                .img {
                    position: relative;
                    width: 260px;
                    height: 285px;
                    background: #fff;
                    .imgBox {
                        width: 100%;
                        height: 100%;
                        background-size: cover;
                        background-position: center;
                    }
                    img {
                        position: absolute;
                        left: 0;
                        // top: -0.75px;
                        width: 100%;
                        height: 100%;
                        // width: 2.65px;
                        // height: 4.14px;
                    }
                }
                .personnel_abstract {
                    // width: 850px;
                    flex: 1;
                    box-sizing: border-box;
                    padding-left: 35px;
                    .abstract_top {
                        color: #666;
                        .info_name {
                            float: left;
                            font-size: 24px;
                            color: #333;
                            font-family: Microsoft YaHei;
                            font-weight: bold;
                            margin-top: 15px;
                        }
                        .info_type {
                            float: left;
                            padding-left: 20px;
                            font-size: 18px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            margin-top: 26px;
                        }
                        .location {
                            float: right;
                            font-size: 18px;
                            margin-top: 26px;
                            img {
                                width: 13px;
                                height: 16px;
                            }
                        }
                    }
                    .business {
                        width: auto;
                        margin-top: 13px;
                        font-size: 0;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #fff;
                        background: #aa171f;
                        span {
                            font-size: 18px;

                            padding: 0 12px;
                            display: inline-block;
                            @include line-hight(42px);
                        }
                    }
                    .introduce {
                        height: 165px;
                        margin-top: 15px;
                        box-sizing: border-box;
                        padding: 26px 17px;
                        background: #fff;
                        h3 {
                            font-size: 18px;
                            color: #aa171f;
                        }
                        p {
                            margin-top: 18px;
                            font-size: 16px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            color: #999;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 3;
                            line-height: 30px;
                            overflow: hidden;
                        }
                    }
                }
            }
        }
        .el-pagination {
            text-align: center;
            height: 70px;
            // margin-top: 0.5px;
        }
    }
    .details {
        .padd05 {
            box-sizing: border-box;
            padding: 0 5px;
        }
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        padding-bottom: 30px;
        .info {
            margin-top: 47px;
            display: flex;
            justify-content: flex-start;
            .img {
                max-width: 326px;
                // max-height: 326px;
            }
            .info_list {
                margin-left: 37px;
                h5 {
                    margin-top: 15px;
                    font-size: 24px;
                    color: #333;
                    font-weight: bold;
                }
                .info_type {
                    color: #aa171f;
                    font-size: 16px;
                    margin-top: 12px;
                }
                .info_item {
                    font-size: 16px;
                    color: #666;
                    margin-top: 25px;
                    display: flex;
                    justify-content: flex-start;
                    .text{
                        min-width: 120px;
                    }
                }
            }
        }

        .return {
            cursor: pointer;
            width: 100px;
            position: absolute;
            right: 0;
            top: 0px;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 7px;
                height: 13px;
            }
        }
        .content {
            box-sizing: border-box;
            padding-bottom: 100px;
            font-size: 16px;
            margin-top: 20px;
            .content_item {
                margin-top: 47px;
                h6 {
                    font-size: 20px;
                    color: #333;
                }
                p {
                    font-size: 16px;
                    color: #666;
                }
            }
        }
    }
}
@mixin home_sm() {
    .table {
        width: 100%;
        height: 3.4rem;
        @include bg("assets/images/personnel_table_bg.png");
    }
    .personnel_list {
        margin: 0 auto;
        background: #f8f8f8;
        color: #323333;
        overflow: hidden;
        .search {
            overflow: hidden;
            background: #fff;
            box-sizing: border-box;
            margin-top: 0.24rem;
            margin-left: 0.3rem;
            margin-right: 0.3rem;
            padding: 0 0.27rem;
            min-height: 1rem;
            position: relative;
            p {
                position: absolute;
                top: 0.36rem;
                @include line-hight(0.64rem);
                font-size: 0.26rem;
                font-family: Microsoft YaHei;
                font-weight: 400;
                text-align: center;
                border-radius: 0.04rem;
            }
            .p1 {
                min-width: 2.73rem;
                left: 0.27rem;
                padding: 0 0.1rem;
            }
            .p2 {
                min-width: 2.4rem;
                padding: 0 0.1rem;
                left: 3.2rem;
            }
            .active {
                background: #aa171f;
                color: #fff;
            }
            //字母搜索
            .alphabet {
                // display: none;
                padding-bottom: 0.1rem;
                border: 0.01rem solid #dddddd;
                padding: 0 0.2rem;
                margin-top: 1rem;
                padding-bottom: 0.2rem;
                .alphabet_item {
                    cursor: pointer;
                    width: 0.8rem;
                    @include line-hight(0.7rem);
                    text-align: center;
                    color: #323333;
                    font-size: 0.2rem;
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    float: left;
                    border-radius: 0.04rem;
                    transition: 1s;
                }
            }
            //条件查询
            .input_box {
                font-size: 0.18rem;
                // margin-top: 0.7rem;
                margin-top: 1rem;
                padding-bottom: 0.2rem;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                .input_item {
                    width: 49%;
                    margin-top: 0.2rem;
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    span {
                        text-align: center;
                        display: inline-block;
                        width: 1rem;
                        @include line-hight(0.54rem);
                    }
                    .input {
                        // width: 2rem;
                        flex: 1;
                        @include line-hight(0.54rem);
                        font-size: 0;
                        background: #f8f8f8;
                        box-sizing: border-box;
                        border-radius: 4px;
                        input {
                            box-sizing: border-box;
                            width: 100%;
                            height: 100%;
                            border: 0.01rem solid #dddddd;
                            outline: none;
                            border-radius: 4px;
                        }
                        input:focus {
                            outline: none;
                            border-color: #aa171f !important;
                        }
                    }
                    .el-select {
                        // width: 2rem;
                        flex: 1;
                        height: 0.54rem !important ;
                        line-height: 0.54rem !important;
                        /deep/ .el-input input {
                            @include line-hight(0.54rem);
                        }
                        /deep/ .el-input__suffix-inner .el-input__icon {
                            @include line-hight(0.54rem);
                        }
                    }
                }
            }
            .submit {
                // display: none;
                // width: 1.2rem;
                cursor: pointer;
                font-size: 0.2rem;
                color: #fcfcfc;
                @include line-hight(0.7rem);
                border-radius: 0.04rem;
                text-align: center;
                background: #aa171f;
                margin-top: 0.25rem;
                font-family: Microsoft YaHei;
                font-weight: bold;
            }
        }
        .personnel_info {
            margin: 0 0.3rem;
            margin-top: 0.88rem;

            .personnel_item {
                display: flex;
                align-items: center;
                margin-bottom: 0.72rem;
                // height: 3.35rem;
                background: #fff;
                box-sizing: border-box;
                padding-top: 0.25rem;
                padding-bottom: 0.25rem;
                font-size: 0;
                .img {
                    position: relative;
                    width: 2.6rem;
                    height: 2.85rem;
                    float: left;
                    background: #fff;
                    .imgBox  {
                        width: 100%;
                        height: 100%;
                        background-size: cover;
                        background-position: center;
                    }
                    img {
                        position: absolute;
                        left: 0;
                        // top: -0.75rem;
                        width: 100%;
                        height: 100%;
                    }
                }
                .personnel_abstract {
                    width: 4rem;
                    float: left;
                    box-sizing: border-box;
                    padding-left: 0.11rem;
                    .abstract_top {
                        color: #666;
                        .info_name {
                            float: left;
                            font-size: 0.3rem;
                            color: #333;
                            font-family: Microsoft YaHei;
                            font-weight: bold;
                            margin-top: 0.15rem;
                        }
                        .info_type {
                            float: left;
                            padding-left: 0.2rem;
                            font-size: 0.22px;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            margin-top: 0.26rem;
                        }
                        .location {
                            float: right;
                            font-size: 0.24rem;
                            margin-top: 0.26rem;
                            img {
                                width: 0.13rem;
                                height: 0.16rem;
                            }
                        }
                    }
                    .business {
                        width: auto;
                        margin-top: 0.13rem;
                        font-size: 0;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #fff;
                        background: #aa171f;
                        span {
                            font-size: 0.18rem;

                            padding: 0 0.12rem;
                            display: inline-block;
                            @include line-hight(0.42rem);
                        }
                    }
                    .introduce {
                        height: 1.65rem;
                        margin-top: 0.1rem;
                        box-sizing: border-box;
                        padding: 0.17rem 0.2rem;
                        overflow: hidden;
                        background: #f8f8f8;
                        h3 {
                            font-size: 0.18rem;
                            color: #aa171f;
                        }
                        p {
                            // margin-top: 0.18rem;
                            font-size: 0.16rem;
                            font-family: Microsoft YaHei;
                            font-weight: 400;
                            color: #999;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 3;
                            overflow: hidden;
                        }
                    }
                }
            }
        }
        .el-pagination {
            text-align: center;
            height: 0.7rem;
            // margin-top: 0.5rem;
        }
    }
    .details {
        box-sizing: border-box;
        padding: 0 0.3rem;
        padding-bottom: 0.3rem;
        .padd05 {
            box-sizing: border-box;
            padding: 0 0.05rem;
        }
        max-width: 12rem;
        margin: 0 auto;
        position: relative;
        .info {
            padding-top: 0.6rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            
            .img {
                max-width: 3.26rem;
                // max-height: 3.26rem;
                // float: left;
            }
            .info_list {
                width: 100%;
                // float: left;
                h5 {
                    margin-top: 0.15rem;
                    font-size: 0.24rem;
                    color: #333;
                    font-weight: bold;
                }
                .info_type {
                    color: #aa171f;
                    font-size: 0.16rem;
                    margin-top: 0.12rem;
                }
                .info_item {
                    font-size: 0.16rem;
                    color: #666;
                    margin-top: 0.25rem;
                    display: flex;
                    justify-content: flex-start;
                    .text{
                        min-width: 2.4rem;
                        text-align: left;
                    }
                    & div:nth-child(2){
                        width: calc(100% - 2.4rem);
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: flex-start;
                    }
                }
            }
        }

        .return {
            cursor: pointer;
            // width: 1rem;
            position: absolute;
            right: 0.3rem;
            top: 0.15rem;
            font-size: 0.16rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 0.07rem;
                height: 0.13rem;
                margin-left: 0.1rem;
            }
        }
        .content {
            box-sizing: border-box;
            padding-bottom: 1rem;
            font-size: 0.16rem;
            margin-top: 0.2rem;
            .content_item {
                margin-top: 0.47rem;
                h6 {
                    font-size: 0.2rem;
                    color: #333;
                }
                p {
                    font-size: 0.16rem;
                    color: #666;
                }
            }
        }
    }
}
//* 设备宽度大于 320px 小于 640px */
@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 641px) and (max-width: 1199px) {
    @include home_lg;
    .details {
        padding: 0 30px;
        box-sizing: border-box;
    }
    .personnel_list .search {
        padding: 30px;
    }
    .personnel_list .search .input_box .input_item {
        min-width: 300px;
    }
    .personnel_list .search .input_box .input_item span {
        min-width: 70px;
    }
}
@media screen and (min-width: 1200px) {
    @include home_lg;
}
